package simpleExample.before;public class Employee {	private int _type;	private int _monthlySalary;	private int _commission;	private int _bonus;	public static final int ENGINEER = 0;	public static final int SALESMAN = 1;	public static final int MANAGER = 2;	public Employee (int type) {		_type = type;	}	public int payAmount() {		switch (_type) {		case ENGINEER:			return _monthlySalary;		case SALESMAN:			return _monthlySalary + _commission;		case MANAGER:			return _monthlySalary + _bonus;		default:			throw new RuntimeException("Incorrect Employee");		}	}}